package com.dgut.service.impl;

import com.dgut.dao.ILogDao;
import com.dgut.domain.Log;
import com.dgut.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("logService")
public class LogServiceImpl implements ILogService {

    @Autowired
    private ILogDao logDao;

    @Override
    public List<Log> findLogs() {
        return logDao.findLogs();
    }

    @Override
    public int insert(Log log) {
        return logDao.insert(log);
    }
}
